<?php
namespace app\index\Validate;
use think\Validate;

class Reg extends Validate{
    protected $rule=[
        'user_name'=>'require|min:3',
        'user_password'=>'require|confirm',
        'user_password_confirm'=>'require',
        'code'=>'require'
    ];
    protected $message=[
        'user_name.require'=>'请输入用户名',
        'user_name.min'=>'用户名不能小于三位字符',
        'user_password.require'=>'请输入密码',
        'user_password.confirm'=>'两次输入密码不一致',
        'code.require'=>'请输入验证码',
    ];
}